package com.woniuxy.receiver;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @Author: 曾令忠
 * @Description:
 * @Date: 2020/7/6 0006-下午 2:38
 */
@Component
public class LengthReceiver {
    private static int count;
    @RabbitListener(queues = "rpc_queue_a")
    public void receive(int num){
        System.out.println("接收到："+ ++count);
    }
}
